<template>
  <div style="width: 100%;height: 100%;">
    <div style="display: flex;align-items: center">
      <div style="width: 50%;height: 45vh;display: flex;flex-direction: column;align-items: center">
        <div style="width: 90%;height: 20%;">
          <el-text style="width: 100%;height: 70%;align-items: center;display: flex;font-size: 20px;font-weight: 550;color: #028370">现有设备种类</el-text>
          <el-text style="width: 100%;height: 30%">截止2024年x月x日</el-text>
        </div>
        <el-carousel style="width: 90%;height: 80%;margin-top: auto;" arrow="never" :autoplay="false" direction="vertical">
          <el-carousel-item v-for="item in 4" :key="item" style="width: 100%;height: 100%;">
            <div style="width: 100%;height:100%;display: flex;">
              <div style="width: 90%;height: 100%;background-color: white;display: flex;;border-radius: 20px;">
                <div style="width: 60%;height: 100%;display: flex;justify-content: center;align-items: center">
                  <font-awesome-icon icon="fas fa-microchip" style="width: 100px;height: 100px"/>
                </div>
                <div style="width: 40%;height: 100%;background-color: #04C1A5;border-radius: 0 20px 20px 0;display: flex;flex-direction: column;justify-content: center;align-items: center">
                  <div style="width: 80%;height: 80%;display: flex;flex-direction: column;">
                    <el-text style="color: white;width: 100%;font-size: 15px;margin-bottom: 10px;">设备名称：睡眠健康检测设备</el-text>
                    <el-text style="color: white;width: 100%;font-size: 15px;margin-bottom: 10px;">设备型号：Sleep 01</el-text>
                    <el-text style="color: white;width: 100%;font-size: 15px;margin-bottom: 10px;">设备尺寸：100x100cm</el-text>
                    <el-text style="color: white;width: 100%;font-size: 15px;margin-bottom: 10px;">设备价格：xxx元</el-text>
                  </div>
                </div>
              </div>
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
      <barChart style="width: 50%"/>
    </div>
    <el-row :gutter="20">
      <el-col :lg="12" :md="24">
        <pieChart />
      </el-col>
      <el-col :lg="12" :md="24">
        <circleChart />
      </el-col>
    </el-row>
  </div>
</template>

<script lang="js">
import { defineComponent } from 'vue'
import barChart from './barChart.vue'
import pieChart from './pieChart.vue'
import circleChart from './circleChart.vue'
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
export default defineComponent({
  components: {
    FontAwesomeIcon,
    barChart,
    pieChart,
    circleChart
  },
  setup() {

  }
})
</script>

<style lang="scss" scoped>
  
</style>